import copy
L1 = [1,2,3,4]
def change(array):
    t_array = array
    t_array[0] = 99
change(L1)
print(L1)
# ii = [1,[3,3],2]
ii=2
iii = copy.copy(ii)

print(ii)
print(iii)
print("--------")
ii =3
# ii.append(3)
# ii[1].append(3)
print(ii)
print(iii)
print(id(ii))
print(id(iii))


ss = "\u751F\u5316\u5371\u673A"
print(ss.encode("utf-8").decode("unicode_escape"))

d = {1:'a'}
print(d)
print("has key",d.__contains__('a'))
aset = set("boy")
# aset.add("python")
aset.update("python")
print(aset)

print(d)
li = [0,0,1,1,1,2,2,3,3,4]
def removeDuplicates(li):
    nums = li
    if (len(nums) == 0):
        return 0
    i = 0
    j = i+1
    while j < len(nums):
        if (nums[j] != nums[i]):
            i += 1
            nums[i] = nums[j]
        j += 1
    return i + 1

print(removeDuplicates(li))
print(li)
